from django.conf.urls import patterns

urlpatterns += patterns('bundles.collections',
  (r'^collections/?$', 'collections'),
  (r'^assets/(?P<as_id>[a-zA-Z0-9]{40})/collections/?$', 'asset_collections'),
  (r'^assets/(?P<as_id>[a-zA-Z0-9]{40})/collections/add/?$', 'add_collection'),
  (r'^assets/(?P<as_id>[a-zA-Z0-9]{40})/collections/remove/?$', 'remove_collection'),
)

urlpatterns += patterns('bundles.usercollections',
  (r'^mycollections/?$', 'collections'),
  (r'^mycollections/create/(?P<name>[^/]+?)/?$', 'create_collection'),
  (r'^mycollections/(?P<name>[^/]+?)/delete/?$', 'delete_collection'),
  (r'^mycollections/(?P<name>[^/]+?)/rename/(?P<newName>[^/]+?)/?$', 'rename_collection'),
  
  (r'^mycollections/(?P<name>[^/]+?)/?$', 'collection'),
  (r'^mycollections/(?P<name>[^/]+?)/assets/add/(?P<as_id>[a-zA-Z0-9]{40})/?$', 'collection_add_asset'),
  (r'^mycollections/(?P<name>[^/]+?)/assets/remove/(?P<as_id>[a-zA-Z0-9]{40})/?$', 'collection_remove_asset'),
  
  (r'^users/mycollections/?$', 'users_collections'),
  #(r'^users/(?P<name>[^/]+?)/mycollections/?$', 'user_collections'),
)
